<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
 <head>
  <meta http-equiv="content-type" content="text/html; charset=UTF-8">
  <title>Determines if an ODBC connection string value should be quoted</title>
<link media="all" rel="stylesheet" type="text/css" href="styles/03e73060321a0a848018724a6c83de7f-theme-base.css" />
<link media="all" rel="stylesheet" type="text/css" href="styles/03e73060321a0a848018724a6c83de7f-theme-medium.css" />

 </head>
 <body class="docs"><div class="navbar navbar-fixed-top">
  <div class="navbar-inner clearfix">
    <ul class="nav" style="width: 100%">
      <li style="float: left;"><a href="function.odbc-connection-string-quote.html">« odbc_connection_string_quote</a></li>
      <li style="float: right;"><a href="function.odbc-cursor.html">odbc_cursor »</a></li>
    </ul>
  </div>
</div>
<div id="breadcrumbs" class="clearfix">
  <ul class="breadcrumbs-container">
    <li><a href="index.html">PHP Manual</a></li>
    <li><a href="ref.uodbc.html">ODBC 函数</a></li>
    <li>Determines if an ODBC connection string value should be quoted</li>
  </ul>
</div>
<div id="layout">
  <div id="layout-content"><div id="function.odbc-connection-string-should-quote" class="refentry">
 <div class="refnamediv">
  <h1 class="refname">odbc_connection_string_should_quote</h1>
  <p class="verinfo">(PHP 8 &gt;= 8.2.0)</p><p class="refpurpose"><span class="refname">odbc_connection_string_should_quote</span> &mdash; <span class="dc-title">Determines if an ODBC connection string value should be quoted</span></p>

 </div>

 <div class="refsect1 description" id="refsect1-function.odbc-connection-string-should-quote-description">
  <h3 class="title">说明</h3>
  <div class="methodsynopsis dc-description">
   <span class="methodname"><strong>odbc_connection_string_should_quote</strong></span>(<span class="methodparam"><span class="type">string</span> <code class="parameter">$str</code></span>): <span class="type">bool</span></div>

  <p class="para rdfs-comment">
    Determines if a string needs to be quoted for an ODBC connection
    string value; that is, if it contains special characters.
  </p>
  <p class="para">
   Note that this does not check if the string is already quoted; an
   already quoted string will contain characters that will make this
   function return true. You should call
   <span class="function"><a href="function.odbc-connection-string-is-quoted.html" class="function">odbc_connection_string_is_quoted()</a></span> to check.
  </p>
 </div>


 <div class="refsect1 parameters" id="refsect1-function.odbc-connection-string-should-quote-parameters">
  <h3 class="title">参数</h3>
  <dl>
   
    <dt>
<code class="parameter">str</code></dt>

    <dd>

     <p class="para">
      The string to check for.
     </p>
    </dd>

   
  </dl>

 </div>


 <div class="refsect1 returnvalues" id="refsect1-function.odbc-connection-string-should-quote-returnvalues">
  <h3 class="title">返回值</h3>
  <p class="para">
   <strong><code>true</code></strong> if the string should be quoted; <strong><code>false</code></strong> otherwise.
  </p>
 </div>


 <div class="refsect1 seealso" id="refsect1-function.odbc-connection-string-should-quote-seealso">
  <h3 class="title">参见</h3>
  <p class="para">
   <ul class="simplelist">
    <li class="member"><span class="function"><a href="function.odbc-connection-string-quote.html" class="function" rel="rdfs-seeAlso">odbc_connection_string_quote()</a> - Quotes an ODBC connection string value</span></li>
    <li class="member"><span class="function"><a href="function.odbc-connection-string-is-quoted.html" class="function" rel="rdfs-seeAlso">odbc_connection_string_is_quoted()</a> - Determines if an ODBC connection string value is quoted</span></li>
   </ul>
  </p>
 </div>



</div></div></div></body></html>